java.lang.Object
ddejonge.bandana.negoProtocol.DMZ
All Implemented Interfaces:
Commitment

public class DMZ
extends java.lang.Object
implements Commitment
  • Constructor Summary

    Constructors 
    Constructor Description
    DMZ​(int year, es.csic.iiia.fabregues.dip.board.Phase phase, java.util.List<es.csic.iiia.fabregues.dip.board.Power> powers, java.util.List<es.csic.iiia.fabregues.dip.board.Province> provinces)  
  • Method Summary

    Modifier and Type Method Description
    es.csic.iiia.fabregues.dip.board.Phase getPhase()  
    java.util.List<es.csic.iiia.fabregues.dip.board.Power> getPowers()
    Returns a copy of the list of powers involved in this DMZ.
    java.util.List<es.csic.iiia.fabregues.dip.board.Province> getProvinces()
    Returns a copy of the list of provinces that are demilitarized.
    int getYear()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DMZ

      public DMZ​(int year, es.csic.iiia.fabregues.dip.board.Phase phase, java.util.List<es.csic.iiia.fabregues.dip.board.Power> powers, java.util.List<es.csic.iiia.fabregues.dip.board.Province> provinces)
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getPhase

      public es.csic.iiia.fabregues.dip.board.Phase getPhase()
    • getYear

      public int getYear()
    • getPowers

      public java.util.List<es.csic.iiia.fabregues.dip.board.Power> getPowers()
      Returns a copy of the list of powers involved in this DMZ.
      Returns:
    • getProvinces

      public java.util.List<es.csic.iiia.fabregues.dip.board.Province> getProvinces()
      Returns a copy of the list of provinces that are demilitarized.
      Returns: